package com.wanda.util;

import java.io.InputStream;
import java.util.Properties;

import com.wanda.model.EmailModel;  

public class LoadEmail {

	public Properties loalMailproperties() throws Exception{
		 Properties properties = new Properties();  
		    InputStream resourceAsStream = null;  
		    try {  
		        // 获取配置文件  
		        resourceAsStream = LoadEmail.class.getClassLoader().getResourceAsStream("/conf/email.properties");  
		       System.out.println("resourceAsStream"+resourceAsStream);
		        properties.load(resourceAsStream);  
		    } finally {  
		         if (resourceAsStream != null) {  
		             resourceAsStream.close();  
		         }  
		    }  

		    return properties;
	}
   
}  

